package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Skill;
import com.xxgc.eow.entity.Userskill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户技能表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-06-04
 */
@Mapper
public interface UserskillMapper extends BaseMapper<Userskill> {

    List<Skill> selectAllByUserId(Integer userId);

    Integer deleteByUserId(Integer userId);

    Integer insertAll(@Param("userId") Integer userId,@Param("list") List<Integer> skillIds);
}
